/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.openbookformat.obffinder.filters;

/**
 *
 * @author matamh0a
 */
public class Filter implements Comparable<Filter> {

    protected String name;
    protected String findText;
    protected String replaceText;
    protected boolean regExp;
    protected boolean ignoreCase;
    protected boolean useVariables;
    protected boolean useIgonreNewLine;
    protected boolean applyToAll;
    protected String description;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isApplyToAll() {
        return applyToAll;
    }

    public void setApplyToAll(boolean applyToAll) {
        this.applyToAll = applyToAll;
    }

    public String getFindText() {
        return findText;
    }

    public void setFindText(String findText) {
        this.findText = findText;
    }

    public boolean isIgnoreCase() {
        return ignoreCase;
    }

    public void setIgnoreCase(boolean ignoreCase) {
        this.ignoreCase = ignoreCase;
    }

    public boolean isRegExp() {
        return regExp;
    }

    public void setRegExp(boolean regExp) {
        this.regExp = regExp;
    }

    public String getReplaceText() {
        return replaceText;
    }

    public void setReplaceText(String replaceText) {
        this.replaceText = replaceText;
    }

    public boolean isUseIgonreNewLine() {
        return useIgonreNewLine;
    }

    public void setUseIgonreNewLine(boolean useIgonreNewLine) {
        this.useIgonreNewLine = useIgonreNewLine;
    }

    public boolean isUseVariables() {
        return useVariables;
    }

    public void setUseVariables(boolean useVariables) {
        this.useVariables = useVariables;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return name;
    }

    @Override
    public int compareTo(Filter o) {
        return name.compareTo(o.name);
    }

    
}
